package edu.mis.modules.category;

import java.util.List;

import edu.mis.model.Category;


public class CategoryService {
	
	
	public List<Category> findAllCategory(){
		return Category.dao.findAll();
	}
	
	public boolean register(Category category){
		if(category.findCategoryByName(category.getCategoryName())==null){
			return category.save();
		}else{
			return false;
		}
		
	}
	
}
